castles= {}
castles.texture = game.images:load("images/castles.png")
castles.texture:resize(32,32)
castles.texSizeX = 256
castles.texSizeY = 3424

objects = {}


function setCastle(layer, posX, posY)
	for y=-1,3 do
		for x=-2,3 do
			setTile(layer, posX+x, posY+y, x+2, 5+1+y)
		end
	end
	
end